package com.warm.system.api;

import com.warm.orm.domain.sys.SysUser;
import com.warm.system.service.ISysUserService;
import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Inject;

/**
 * 用户 对外api实现业务层
 *
 * @author hh
 */
@Component
public class SysUserApiImpl implements ISysUserApi {

    @Inject
    private ISysUserService userServeice;

    /**
     * 通过用户ID查询用户
     *
     * @param userId 用户ID
     * @return 用户对象信息
     */
    @Override
    public SysUser selectUserById(Long userId) {
        return userServeice.selectUserById(userId);
    }

}
